WP_Defender\Controller\Two_Factor D

Total Complexity 196
Dependencies 21
Dependents 9
Total lines 1,400
Lines of code 902
Logical lines of code 443
Comment lines 368
Methods 47
Properties 8

Methods 47

Method Rating Maintainability Complexity Lines of code
render_otp_screen()
B
34 18 91
profile_update()
B
42 16 52
verify_otp_login_time()
A
36 13 85
__construct()
A
37 13 67
show_user_profile()
A
39 10 63
maybe_show_otp_form()
A
49 10 30
verify_otp_for_enabling()
A
47 9 37
admin_notices()
A
47 8 37
maybe_redirect_to_show_2fa_enabler()
S
53 7 23
send_test_email()
S
42 4 60
save_settings()
S
51 6 27
handle_woocommerce_prevent_admin_access()
S
57 6 19
filter_users_by_2fa()
S
56 5 19
disable_totp()
S
55 5 18
handle_woocommerce_login_redirect()
S
59 5 15
display_2fa_user_settings()
S
58 4 15
save_2fa_details()
S
58 4 15
display_user_actions()
S
59 4 14
send_backup_code()
S
55 3 21
alter_user_table_row()
S
61 3 12
wp_defender_2fa_link_my_account()
S
67 3 6
check_route()
S
72 3 5
store_session_key()
S
67 3 7
remove_data()
S
54 1 21
data_frontend()
S
56 1 18
generate_backup_codes()
S
58 1 16
woo_integration_enabled()
S
80 2 3
listen_for_jetpack_option()
S
68 2 7
menu_title()
S
66 2 8
is_auth_enabled_for_user_role()
S
69 2 6
to_array()
S
63 2 10
flush_rewrite_rules()
S
72 2 6
enqueue_assets()
S
64 2 10
export_strings()
S
70 2 6
import_data()
S
67 2 8
config_strings()
S
72 2 5
wp_defender_2fa_query_vars()
S
77 1 4
wp_defender_2fa_endpoint()
S
79 1 3
wp_defender_2fa_content()
S
80 1 3
alter_users_table()
S
69 1 6
add_redirect_to_input()
S
79 1 3
redirect_url()
S
79 1 3
woocommerce_hooks()
S
71 1 5
clear_providers()
S
75 1 4
m2_no_ajax()
S
82 1 3
remove_settings()
S
81 1 3
main_view()
S
81 1 3